package com.syh.jn.scm.dto.upstream.finance.upStatementAccountBillCart;

import lombok.Data;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by soci.song on 2018/12/11.
 */
@Data
public class UpStatementAccountBillCartDto implements Serializable {
  /**
   * 客户类型: 0上游, 1下游, 2物流
   */
  @NotNull(message = "客户类型不能为空")
  private Short customerType;
  /**
   * 客户id
   */
  @NotNull(message = "客户id不能为空")
  private Long customerId;
  /**
   * 来源单类型 0 销售单 1 销售退货单 2采购单 4 采购退货单 5 费用单 6 收入单
   */
  @NotNull(message = "来源单类型不能为空")
  private Short sourceType;
  /**
   * 来源单号
   */
  @NotEmpty(message = "来源单号不能为空")
  private String sourceCode;
  /**
   * 来源单id
   */
  @NotNull(message = "来源单id不能为空")
  private Long sourceId;
  /**
   * 录单人id
   */
  private Long brokerageId;
  /**
   * 归属端id
   */
  private Long businessEntityId;
}
